<div class="page-header">
	<h2>Lista użytkowników</h2>
</div>
<?php echo $this->Session->flash('flash'); ?>
<?php if ($isLoggedUserAdmin) { ?>
	<button class="btn btn-primary" onclick="Users.displayEditWindow(false)">
	    <i class="glyphicon glyphicon-plus-sign"></i>
	    Dodaj
	</button>
	</br>
	</br>
	<?php  }?>
<div class="table-responsive" id="usersTable">
    <script>Users.createTable('<?php echo json_encode($users) ?>', <?php echo $loggedUserId ?>, <?php echo $isLoggedUserAdmin; ?>);</script>
</div>
<div id="paginator" style="margin:0px auto; display:block; text-align:center; margin-bottom:20px;" >
<?php  
echo $this->Paginator->prev(' << ', array(), null, array('class' => 'prev disabled'));
echo $this->Paginator->numbers(array('separator'=>' '));
echo $this->Paginator->next(' >> ', array(), null, array('class' => 'next disabled'));
?>
</div>
